return {
  "neovim/nvim-lspconfig",
  opts = {
    inlay_hints = {
      enabled = false,
      exclude = { "python" },
    },
    servers = {
      -- ✅ 保留 basedpyright
      basedpyright = {
        settings = {
          basedpyright = {
            analysis = {
              typeCheckingMode = "off",
              autoImportCompletions = true,
            },
          },
        },
      },

      -- 🚫 禁用 pylsp，防止重复定义响应
      pylsp = false,

      -- ✅ 保留 ruff（ruff 是独立的 lint server，不冲突）
      ruff = {
        keys = {
          {
            "<leader>co",
            LazyVim.lsp.action["source.organizeImports"],
            desc = "Organize Imports",
          },
        },
      },
    },
  },
}
